<?php
namespace Hilaoyu\LaravelExtend;
use Hilaoyu\Utils\Traits\ErrorsTrait;
use Hilaoyu\LaravelExtend\Traits\ModelCommonTrait;

/**
 * Created by laoyu.
 * User: hilaoyu@qq.com
 * Date: 2018/5/7
 * Time: 10:44
 */





abstract class Model extends \Illuminate\Database\Eloquent\Model
{
    use ErrorsTrait;
    use ModelCommonTrait;
    protected $primaryKey = 'id';
    protected $keyType = 'uuid';

    public $incrementing = false;

    public function getDateFormat()
    {
        return $this->dateFormat ?: env("ORM_DATE_FORMAT", parent::getDateFormat());
    }
}
